{{define "page"}}
    <div class="layui-box layui-laypage layui-laypage-default" style="align-content: center" id="layui-laypage-2">
        <a href="{{$.PageLink 1}}" class="layui-laypage-prev"><i class="layui-icon"></i></a>
        {{range $index,$value := .PageRange}}
            {{if eq $value $.PageNum}}
                <span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>{{$value}}</em></span>
            {{else}}
                <a href="{{$.PageLink $value}}">{{$value}}</a>
            {{end}}
        {{end}}
        <a href="{{$.PageLink .PageCount}}" class="layui-laypage-next" data-page="4"><i class="layui-icon"></i></a>
        <span class="layui-laypage-count">共 {{.RecordCount}} 条</span>
    </div>
{{end}}